import unittest
from test_cases.test_login import TestLogin
from test_cases.test_shop import TestShop
from test_cases.test_userinfo import TestUserinfo
from BeautifulReport import BeautifulReport as bf

suite = unittest.TestSuite()
loader = unittest.TestLoader()

suite.addTests(loader.loadTestsFromTestCase(TestLogin))
suite.addTests(loader.loadTestsFromTestCase(TestShop))
suite.addTests(loader.loadTestsFromTestCase(TestUserinfo))

runner = bf(suite)
runner.report(filename=r"./test_results/html/test_bf_report.html", description='这个描述参数是必填的')